package com.woniu.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.woniu.entity.Finance;
import com.woniu.entity.Order;
import com.woniu.model.Funds;
import com.woniu.model.QueryVo;

import tk.mybatis.mapper.common.Mapper;

public interface FinanceMapper extends Mapper<Finance> {

	List<QueryVo> selectAllByIdAnduNameAndTime(@Param("order") String orderGenerateId,
			@Param("uname") String buyUserName, @Param("start") Date startTime, @Param("end") Date endTime,
			@Param("size") int pageSize, @Param("num") int pageNum);

	int selectCountByIdAnduNameAndTime(@Param("order") String orderGenerateId, @Param("uname") String buyUserName,
			@Param("start") Date startTime, @Param("end") Date endTime);

	/**
	 * @param startTime
	 * @param endTime
	 */
	Funds selectFunds(@Param("start") Date startTime, @Param("end") Date endTime);

	/**
	 * @return
	 */
	List<Order> selectOrderList();
}